package eventStrategies.component;

import java.util.ArrayList;

import modifiers.DataModifier;
import modifiers.IEventResponse;
import utilities.Key;
import eventManager.AppEvent;
import eventManager.EventPortal;

public class RemoveDataModifierStrategy implements IEventResponse {

	private ArrayList<String> eventTypes = new ArrayList<String>();
	private Key target;
	private DataModifier dataMod;
	
	public RemoveDataModifierStrategy(Key target, DataModifier dataMod) {
		eventTypes.add("removeDataModifier");
		this.target = target;
		this.dataMod = dataMod;
	}
	
	public ArrayList<String> getEventTypes() {
		return eventTypes;
	}

	public void execute(AppEvent event) {
		Object[] objs = new Object[]{dataMod.getName()};
		EventPortal.queueEvent(new AppEvent("removeDataModifier", objs));		
	}

}